<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop === '0'">
      <store-transfer-en :trType="1" :trName="tabsType.name" />
    </template>
    <template v-else-if="tabsType.prop === '1'">
      <store-transfer-un :trType="1" :trName="tabsType.name" />
    </template>
  </basic-container>
</template>

<script>
import storeTransferEn from "./components/store_transfer_en";
import storeTransferUn from "./components/store_transfer_un";
export default {
  components: {
    storeTransferEn,
    storeTransferUn,
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "回拨记录",
            name: "回拨",
            prop: "0",
          },
          {
            label: "扣减记录",
            name: "扣减",
            prop: "1",
          },
        ],
      },
    };
  },
  computed: {
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
    }
  },
};
</script>

<style>
</style>
